package com.hishop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hishop.common.utils.PageUtils;
import com.hishop.product.entity.CategoryBrandRelationEntity;

import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author tanwenbin
 * @email 2466082499@qq.com
 * @date 2024-03-13 09:24:45
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存新增关联分类
     * @param categoryBrandRelation
     */
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    /**
     * 根据 brand 更新关联表
     * @param brandId
     * @param name
     */
    void updateBrand(Long brandId, String name);
}

